package yang.model;
// default package

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * FinanceInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "finance_info", catalog = "hospital")
public class FinanceInfo implements java.io.Serializable {

	// Fields

	private String id;//UUID
	private String financeType;//财务类型，挂号费和治疗费
	private Double financeMoney;//价格
	private Timestamp financeTime;//添加时间

	// Constructors

	/** default constructor */
	public FinanceInfo() {
	}

	/** minimal constructor */
	public FinanceInfo(String id) {
		this.id = id;
	}

	/** full constructor */
	public FinanceInfo(String id, String financeType, Double financeMoney,
			Timestamp financeTime) {
		this.id = id;
		this.financeType = financeType;
		this.financeMoney = financeMoney;
		this.financeTime = financeTime;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 36)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "finance_type", length = 20)
	public String getFinanceType() {
		return this.financeType;
	}

	public void setFinanceType(String financeType) {
		this.financeType = financeType;
	}

	@Column(name = "finance_money", precision = 22, scale = 0)
	public Double getFinanceMoney() {
		return this.financeMoney;
	}

	public void setFinanceMoney(Double financeMoney) {
		this.financeMoney = financeMoney;
	}

	@Column(name = "finance_time", length = 19)
	public Timestamp getFinanceTime() {
		return this.financeTime;
	}

	public void setFinanceTime(Timestamp financeTime) {
		this.financeTime = financeTime;
	}

}